<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<c:set var="contextPath" value="${pageContext.request.contextPath}" />

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN" "http://www.wapforum.org/DTD/xhtml-mobile11.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width, target-densitydpi=medium-dpi" />
	<meta name="HandheldFriendly" content="true" />
	<title>인권과 평화의 대학 - 성공회대학교</title>
	<link rel="stylesheet" href="${contextPath}/css/common/layout.css" type="text/css" />
	<link rel="stylesheet" href="${contextPath}/css/index.css" type="text/css" />
	<link media="all" rel="stylesheet" href="${contextPath}/css/guestbook.css" />
	<script type="text/javascript">
		var contextPath = "${contextPath}";
	</script>
	<script type="text/javascript" src="${contextPath}/js/common/lib/jquery-1.6.4.js"></script>
	<script type="text/javascript" src="${contextPath}/js/common/lib/jquery.form.js"></script>
	<script type="text/javascript" src="${contextPath}/js/common/lib/jquery.url.js"></script>
	<script type="text/javascript" src="${contextPath}/js/common/menu.js"></script>
	<script type="text/javascript" src="${contextPath}/js/index.js"></script>
	<script type="text/javascript"> 

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-32515688-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

  
</script>
</head>
<body>
	<jsp:include page="./common/header.jsp" />
		
	<!-- 컨텐츠 시작 -->	
	<div id="center">
		
		<!-- 알림마당 -->
		<dl class="notice">
			<dt class="notice_title">
				<img class="title_1" src="${contextPath}/img/index/title_1.jpg" alt="알림마당" />
				<img class="prev" src="${contextPath}/img/index/notice_prev.jpg" alt="이전" />
				<img class="next" src="${contextPath}/img/index/notice_next.jpg" alt="다음	" />
			</dt>
			<dd id="list_zone_1" class="list_zone">
				<!-- 학사공지 -->
				<div class="button_zone">
					<span id="list_zone_univ_1" class="univ">대학</span>
					<span id="list_zone_graduate_1" class="graduate">대학원</span>
					<span class="notice_name">[학사공지]</span>
					<a href="${contextPath}/undergraduate_notice/list.do"><img class="more" src="${contextPath}/img/index/more.jpg" alt="더보기" /></a>
				</div>
				<ul id="list_zone_univ_1_list" class="univ_list">
					<c:forEach items="${notice_1_1}" var="notice_1_1">
						<li><a href="${contextPath}/undergraduate_notice/view.do?idx=${notice_1_1.idx}&amp;searchBun=51">${notice_1_1.text}</a></li>
					</c:forEach>
				</ul>
				<ul id="list_zone_graduate_1_list" class="graduate_list">
					<c:forEach items="${notice_1_2}" var="notice_1_2">
						<li><a href="${contextPath}/undergraduate_notice/view.do?idx=${notice_1_2.idx}&amp;searchBun=52">${notice_1_2.text}</a></li>
					</c:forEach>
				</ul>
			</dd>
			<dd id="list_zone_2" class="list_zone">
				<!-- 수업공지 -->
				<div class="button_zone">
					<span id="list_zone_univ_2" class="univ">대학</span>
					<span id="list_zone_graduate_2" class="graduate">대학원</span>
					<span class="notice_name">[수업공지]</span>
					<a href="${contextPath}/class_notice/list.do"><img class="more" src="${contextPath}/img/index/more.jpg" alt="더보기" /></a>
				</div>
				<ul id="list_zone_univ_2_list" class="univ_list">
					<c:forEach items="${notice_2_1}" var="notice_2_1">
						<li><a href="${contextPath}/class_notice/view.do?idx=${notice_2_1.idx}&amp;searchBun=52">${notice_2_1.text}</a></li>
					</c:forEach>
				</ul>
				<ul id="list_zone_graduate_2_list" class="graduate_list">
					<c:forEach items="${notice_2_2}" var="notice_2_2">
						<li><a href="${contextPath}/class_notice/view.do?idx=${notice_2_2.idx}&amp;searchBun=53">${notice_2_2.text}</a></li>
					</c:forEach>
				</ul>
			</dd>
			<dd id="list_zone_3" class="list_zone">
				<!-- 장학공지 -->
				<div class="button_zone"> 
					<span id="list_zone_univ_3" class="univ">대학</span>
					<span id="list_zone_graduate_3" class="graduate">대학원</span> 
					<span class="notice_name">[장학공지]</span>
					<a href="${contextPath}/scholarship_notice/list.do"><img class="more" src="${contextPath}/img/index/more.jpg" alt="더보기" /></a>
				</div>
				<ul id="list_zone_univ_3_list" class="univ_list">
					<c:forEach items="${notice_3_1}" var="notice_3_1">
						<li><a href="${contextPath}/scholarship_notice/view.do?idx=${notice_3_1.idx}&amp;searchBun=75">${notice_3_1.text}</a></li>
					</c:forEach>
				</ul>
				<ul id="list_zone_graduate_3_list" class="graduate_list">
					<c:forEach items="${notice_3_2}" var="notice_3_2">
						<li><a href="${contextPath}/scholarship_notice/view.do?idx=${notice_3_2.idx}&amp;searchBun=76">${notice_3_2.text}</a></li>
					</c:forEach>
				</ul>
			</dd>
			<dd id="list_zone_4" class="list_zone">
				<!-- 일반공지 -->
				<div class="button_zone">
					<span class="notice_name">[일반공지]</span>
					<a href="${contextPath}/general_notice/list.do"><img class="more" src="${contextPath}/img/index/more.jpg" alt="더보기" /></a>
				</div>
				<ul>
					<c:forEach items="${notice_4}" var="notice_4">
						<li><a href="${contextPath}/general_notice/view.do?idx=${notice_4.idx}&">${notice_4.text}</a></li>
					</c:forEach>
				</ul>
			</dd>
			<dd id="list_zone_5" class="list_zone">
				<!-- 행사공지 -->
				<div class="button_zone">
					<span class="notice_name">[행사공지]</span>
					<a href="${contextPath}/event_notice/list.do"><img class="more" src="${contextPath}/img/index/more.jpg" alt="더보기" /></a>
				</div>
				<ul>
					<c:forEach items="${notice_5}" var="notice_5">
						<li><a href="${contextPath}/event_notice/view.do?idx=${notice_5.idx}&">${notice_5.text}</a></li>
					</c:forEach>
				</ul>
			</dd>
		</dl>
		
		<!-- 학사안내 -->
		<dl class="academics">
			<dt class="academics_title">
				<img class="title_2" src="${contextPath}/img/index/title_2.jpg" alt="학사안내" />
				<a id="calendar_link" href="${contextPath}/university/school_calendar.do"><img class="more" src="${contextPath}/img/index/more.jpg" alt="더보기" /></a>
			</dt>
			<dd class="button_zone">
				<span id="academics_univ" class="univ">대학</span>
				<span id="academics_graduate" class="graduate">대학원</span>
				<span class="month">${year}년 ${month}월</span>
			</dd>
			<dd class="academics_content">
				<table id="academics_content_univ" class="academics_table" summary="대학의 이번 달의 학사일정에 맞는 학사내용">
					<caption class="hidden">대학 학사안내</caption>
					 
					<thead>
						<tr>
							<th class="th_1">학사일정</th>
							<th class="th_2">학사내용</th>
						</tr>	
					</thead>
					
					<tbody>
						<c:forEach items="${university}" var="university">
							<tr>
								<td>${university.day}</td>
								<td>${university.txt}</td>
							</tr>
						</c:forEach>
					</tbody>
					
				</table>
				
				<table id="academics_content_graduate" class="academics_table" summary="대학원의 이번 달의 학사일정에 맞는 학사내용">
					<caption class="hidden">대학원 학사안내</caption>
					
					<thead>
						<tr>
							<th class="th_1">학사일정</th>
							<th class="th_2">학사내용</th>
						</tr>	
					</thead>
					
					<tbody>
						<c:forEach items="${graduate}" var="graduate">
							<tr>
								<td>${graduate.day}</td>
								<td>${graduate.txt}</td>
							</tr>
						</c:forEach>
					</tbody>
					
				</table>
			</dd>
		</dl>	
		
		<!-- SKHU_NEWS -->
		<dl class="skhu_news">
			<dt class="skhu_news_title">
				<img class="title_3" src="${contextPath}/img/index/title_3.jpg" alt="SKHU_NEWS" />
				<a href="${contextPath}/pr/skhu_news_list.do"><img class="more" src="${contextPath}/img/index/more.jpg" alt="더보기" /></a>
			</dt>
			<dd class="skhu_news_content">
				<dl>
					<dt class="clearAfter">
						<a href="${contextPath}/pr/skhu_news_view.do?${skhuNews.idx}">
							<c:choose>
								<c:when test="${fn:contains(skhuNews.img, 'http://www.skhu.ac.kr')}">
									<img src="${skhuNews.img}" alt="${skhuNews.title}" />								
								</c:when>
								<c:otherwise>
									<img src="http://www.skhu.ac.kr${skhuNews.img}" alt="${skhuNews.title}" />
								</c:otherwise>
							</c:choose>
						
						</a>
						<a class="content_title" href="${contextPath}/pr/skhu_news_view.do?${skhuNews.idx}">${skhuNews.title}</a>
					</dt>
					<dd>
						<a href="${contextPath}/pr/skhu_news_view.do?${skhuNews.idx}">
							${skhuNews.content}
						</a> 
					</dd>
				</dl>
			</dd> 
		</dl>	
		
		<!-- 자유게시판 -->
		<dl class="free_board">
			<dt class="free_board_title">
				<img class="title_4" src="${contextPath}/img/index/title_4.jpg" alt="자유게시판" />
				<a href="${contextPath}/free_board/list.do"><img class="more" src="${contextPath}/img/index/more.jpg" alt="더보기" /></a>
			</dt>
			<dd class="free_board_content">
				<ul>
					<c:forEach items="${free}" var="free">
						<li><a href="${contextPath}/free_board/view.do?idx=${free.idx}&">${free.text} <span class="name">[${free.name} | ${free.todayDate}]</span></a></li>
					</c:forEach>
				</ul>
			</dd>
		</dl>	
		
	</div>	
	<!-- 컨텐츠 끝 -->	
	
	<!-- 방명록 -->
	<!-- 
	<div id="guest_book_wrap">${guestbook}</div>
	 -->
	<!-- 하단영역 -->
	<jsp:include page="./common/footer.jsp" />
		
</body>
</html>